package br.com.elfo.dado.activity;




import br.com.elfo.R;
import br.com.elfo.R.id;
import br.com.elfo.R.layout;
import br.com.elfo.dado.view.TesteView;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.Button;


public class TesteActivity extends Activity implements View.OnClickListener, android.hardware.SensorListener {
	
	private TesteView teste; 
	
	private static String ICICLE_KEY = "view";
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.main);
        teste = (TesteView) findViewById(R.id.view);
        teste.setOnClickListener(this);
        Button b = (Button) findViewById(R.id.btn01);
        b.setOnClickListener(this);
    }
	
	public void onClick(View v) {
		if(v.getBottom() == ((Button) findViewById(R.id.btn01)).getBottom()){
			System.out.println("Clicou");
		}
	}

	public void onAccuracyChanged(int sensor, int accuracy) {
		// TODO Auto-generated method stub
		
	}

	public void onSensorChanged(int sensor, float[] values) {
		// TODO Auto-generated method stub
		
	}
}
